import request from '@/utils/request'

// 查询广告点击列表
export function listClick(query) {
  return request({
    url: '/system/click/list',
    method: 'get',
    params: query
  })
}

// 查询广告点击详细
export function getClick(id) {
  return request({
    url: '/system/click/' + id,
    method: 'get'
  })
}

// 新增广告点击
export function addClick(data) {
  return request({
    url: '/system/click',
    method: 'post',
    data: data
  })
}

// 修改广告点击
export function updateClick(data) {
  return request({
    url: '/system/click',
    method: 'put',
    data: data
  })
}

// 删除广告点击
export function delClick(id) {
  return request({
    url: '/system/click/' + id,
    method: 'delete'
  })
}
